package cn.zlp.org.mapper;

import cn.zlp.basic.mapper.BaseMapper;
import cn.zlp.org.domain.Shop;
import cn.zlp.org.dto.ShopPetDto;
import cn.zlp.pet.domain.Pet;

import java.util.List;

/**
 * 店铺mapper接口
 * @author Mr.Zhang
 */
public interface ShopMapper extends BaseMapper<Shop> {

    /** 根据地址查询店铺 */
    Shop findByAddress(String address);

    /** 查询店铺宠物信息总数 */
    Long getPetTotals(ShopPetDto shopPetDto);

    /** 分页查询店铺宠物信息 */
    List<Pet> loadPetByQuery(ShopPetDto shopPetDto);
}
